package com.jbbmobile.hackathon.Model;

import com.googlecode.objectify.annotation.Unindexed;

public class Person extends HackObject {
	private static final long serialVersionUID = 6721595539553538480L;
	@Unindexed private String phone;
	@Unindexed private String email;
	@Unindexed private String address;
	@Unindexed private int type;
	
	public Person() {}
	
	public Person(String name, String phone, String email, String address, int type) {
		super(name);
		this.setPhone(phone);
		this.setEmail(email);
		this.setAddress(address);
		this.setType(type);
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public void setType(int type) {
		this.type = type;
	}

	public int getType() {
		return type;
	}

	public boolean equals(Object o) {
		Person p = (Person) o;
		return p.getId() == this.getId();
	}
}
